package com.itheima.service.oms;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.dto.oms.OrderDeliveryDto;
import com.itheima.dto.oms.OrderReceiverDto;
import com.itheima.result.PageResult;
import com.itheima.vo.oms.OmsOrder;
import com.itheima.vo.oms.OrderDetailsVo;

import java.util.List;


public interface OmsOrderService extends IService<OmsOrder> {
    //根据订单id查询指定订单详情
    OrderDetailsVo findById(Integer id);

    //备注订单
    Integer note(Long id, Integer status, String note);

    //分页查询订单详情
    PageResult listPage(String createTime,String orderSn,String receiverKeyword,Integer orderType,
                        Integer pageNum,Integer pageSize,Integer sourceType,Integer status);

    //批量关闭订单
    void closeOrders(List<Integer> ids, String note);

    void delivery(List<OrderDeliveryDto> list);
    //修改收货人信息
    void updateReceiver(OrderReceiverDto dto);
}
